const express=require("express");

const userController = require('../controller/userController');
const groupController = require('../controller/groupController');
const webcastController = require('../controller/webcastController')
const transactionController = require('../controller/transactionController');
const authorityController = require('../controller/authorityController');


const router=express.Router();

//拦截
// 登录
router.post('/login.do',userController.login);

// 用户列表
router.get('/userList.do',userController.userList)
// 搜索
router.get('/userListSearch.do',userController.userListSearch)
// 新增
router.post('/addUser.do',userController.addUser)
// 批量删除
router.get('/delSelectionUser.do',userController.delSelectionUser)
// 修改状态
router.get('/alterMode.do',userController.alterMode)
// 修改信息
router.post('/alterUser.do',userController.alterUser)
// 删除当前用户
router.get('/delUser.do',userController.delUser)

// 聊天记录
router.get('/chatRecordList.do',userController.chatRecordList)
// 搜索
router.get('/chatRecordListSearch.do',userController.chatRecordListSearch)
// 批量删除
router.get('/delSelectionChatRecord.do',userController.delSelectionChatRecord)
// 删除当前内容
router.get('/delRow.do',userController.delRow)

// 用户IP
// 搜索
router.get('/userIPSearch.do',userController.userIPSearch)
// 举报记录
router.get('/userRecord.do',userController.userRecord)
// 搜索
router.get('/userRecordSearch.do',userController.userRecordSearch)
// 状态修改
router.get('/userRecordMode.do',userController.userRecordMode)

// 群组列表
router.get('/groupList.do',groupController.groupList)
// 搜索
router.get('/groupListSearch.do',groupController.groupListSearch)
// 批量删除
router.get('/delSelectionGroup.do',groupController.delSelectionGroup)
// 改变状态
router.get('/groupListMode.do',groupController.groupListMode)
// 解散
router.get('/disbandGroupList.do',groupController.disbandGroupList)

// 举报记录
router.get('/groupRecordList.do',groupController.groupRecordList)
// 搜索
router.get('/groupRecordListSearch.do',groupController.groupRecordListSearch)
// 冻结
router.get('/groupRecordListMode.do',groupController.groupRecordListMode)
// 解散
router.get('/disbandGroupRecordList.do',groupController.disbandGroupRecordList)


// 交易流水列表
router.get('/transactionList.do',transactionController.transactionList)
// 搜索
router.get('/transactionListSearch.do',transactionController.transactionListSearch)
// 提现已处理
router.get('/treatedList.do',transactionController.treatedList)
// 搜索
router.get('/treatedListSearch.do',transactionController.treatedListSearch)
// 提现待处理
router.get('/waitTreatList.do',transactionController.waitTreatList)
// 搜索
router.get('/waitTreatListSearch.do',transactionController.waitTreatListSearch)
// 打款
router.get('/paymentTreat.do',transactionController.paymentTreat)
// 驳回
router.get('/backTreat.do',transactionController.backTreat)

// 直播列表
router.get('/webcastList.do',webcastController.webcastList)
// 搜索
router.get('/webcastListSearch.do',webcastController.webcastListSearch)
// 禁播
router.get('/banWebcast.do',webcastController.banWebcast)



// 管理员列表
router.get('/adminList.do',authorityController.adminList)
// 搜索
router.get('/adminSearch.do',authorityController.adminSearch)
// 新增管理员
router.post('/addAdmin.do',authorityController.addAdmin)
// 批量删除
router.get('/delSelectionAdmin.do',authorityController.delSelectionAdmin)
// 修改状态
router.get('/alterAdminMode.do',authorityController.alterAdminMode)
// 修改信息
router.post('/alterAdminData.do',authorityController.alterAdminData)
// 删除
router.get('/delAdmin.do',authorityController.delAdmin)


// 用户管理
router.get('/userAuthorityList.do',authorityController.userAuthorityList)
// 添加用户类型
router.post('/addUserAuthorityList.do',authorityController.addUserAuthorityList)
// 批量删除
router.get('/delSelectionUserAuthority.do',authorityController.delSelectionUserAuthority)
// 修改
router.post('/updateUserAuthority.do',authorityController.updateUserAuthority)
// 权限
router.get('/updateAuthority.do',authorityController.updateAuthority)
// 删除
router.get('/delUserAuthority.do',authorityController.delUserAuthority)

module.exports=router;

